package dao.impl;

public class IntermediarySubclass extends RealBuyer{
    /**
     * 重写目标对象业务方法实现代理
     */
    @Override
    public String havealook(){
        before();
        String feedback = super.havealook();
        after();
        return "看房记录：买家反馈"+feedback;
    }
    public void before(){
        System.out.println("看房");
    }
    public void after(){
        System.out.println("看完了");
    }
}
